package com.GreenIce.android.datastructure;

import android.util.Log;

/**
 * 一次出击,即播放一次声音
 * @author Jas0n
 *
 */
public class Strike {
	public int pre_time;
	public int sound_id;
	public int dir_id;
	public int last_time;
	private  int isValid;
	public int beat_time;
	public Strike(int pre_time,int isValid,int sound_id,int dir_id,int last_time,int beat_time){
		this.sound_id = sound_id;
		this.isValid = isValid;
		this.pre_time = pre_time;
		this.dir_id = dir_id;
		this.last_time = last_time;
		this.beat_time = beat_time;
		Log.v("Strike", "-->"+pre_time+","+isValid+","+sound_id+","+dir_id+","+last_time+","+beat_time);
	}
	public boolean isValid(){
		return isValid == 1;
	}
	public boolean isFool(){
		return isValid == 0;
	}
	public boolean isTip(){
		return isValid == 2;
	}
}
